<?php

class Catalogue_Model_Attribute_Enum_Item_Storage_Table extends Workset_Model_Object_Storage_Table_Abstract {

	protected $_objectClass = 'Catalogue_Model_Attribute_Enum_Item';
	
	protected $_iteratorClass = 'Catalogue_Model_Object_Iterator';

	protected $_tableClass = 'Catalogue_Table_Attribute_Enum';  

	function getAll(Workset_Model_Object_Interface $attr = null, $where = null, $order = null, $limit = null, $offset = null, $offsetByPage = false) {
        if (null !== $attr) {
            if (null === $where) {
               $where = array('attr_id = ?' => $attr->getId());
            } else {
               $where = (array)$where;
               $where['attr_id = ?'] = $attr->getId();
            }
        }
      
        return parent::getAll($where, $order, $limit, $offset, $offsetByPage);

	}

}

?>